vector v;
int size = (int) read();
v = new vector[size];
int i = 0;
do {
	v[i] = 1/2;
	i = i + 1;
} while (i < size);

vector v1 = v + v;
vector mv = v * v1;
mv = mv * 2;

if (size != mv.length)
    // impossible situation
	goto end;
else
    // just continue
	goto continue;

write(size);

continue:

boolean b = true;
b = false;

float f = 0.5;
rational r1 = 1/3;
rational r2 = (rational) f;

int cd = commonDenominator(r1, r2);
write(cd);

int num = r1.numerator;
write(num);
int den = r1.denominator;
write(den);

rational r = (r1 + r2) * 4;
int integ = r.integer;
rational frac = r.fraction;
write(integ);
write(frac);

type array = vector;
array arr = new array[] {1/3, 1/2};
int len = arr.length;
write(len);

end: 
write(size);